package com.wtb.javatool.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;

import javax.persistence.Column;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Slf4j
public class StuApply implements Serializable {
    private static final long serialVersionUID = 2L;
    @ApiModelProperty(value = "id")
    private int id;
    @ApiModelProperty(value = "学生姓名")
    private String stu_name;
    @ApiModelProperty(value = "学生学号")
    private String stu_sno;
    @ApiModelProperty(value = "课程名称")
    private String course_name;
    @ApiModelProperty(value = "课程编号")
    private String course_id;
    @ApiModelProperty(value = "申请状态")
    private String status;
    @ApiModelProperty(value = "学生申请说明")
    private String remark;
    @ApiModelProperty(value = "审批人编号")
    private String approverId;
    @ApiModelProperty(value = "数据库名称")
    private String db_name;
    @ApiModelProperty(value = "申请时间")
    @Column(name = "apply_time")
    private LocalDateTime apply_time;
    @ApiModelProperty(value = "教师授权时间")
    @Column(name = "teacher_auth_time")
    private LocalDateTime teacher_auth_time;
    @ApiModelProperty(value = "管理员授权时间")
    private LocalDateTime admin_auth_time;
    @ApiModelProperty(value = "教师拒绝原因")
    private String reject_reason;

    public StuApply(String course_name, String course_id, String remark, String status, String db_name, LocalDateTime apply_time, LocalDateTime admin_auth_time, String reject_reason){
        super();
        this.course_name = course_name;
        this.course_id = course_id;
        this.remark = remark;
        this.status = status;
        this.db_name = db_name;
        this.apply_time = apply_time;
        this.admin_auth_time = admin_auth_time;
        this.reject_reason = reject_reason;
    }
}
